package com.es.esjest.pojo;

import io.searchbox.annotations.JestId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author luheng
 * @create 2019/6/27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class User {

    @JestId
    private String id;
    private String name;
    private String adress;
    private Integer age;
    private String birthady;
    private String interests;

    public static class Property {
        private Property() {}
        public static final String name = "name";
        public static final String adress = "adress";
        public static final String age = "age";
        public static final String birthady = "birthady";
        public static final String interests = "interests";
    }
}
